package com.juneyaoair.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 袁闻锴
 * @date 2020/10/31 17:53
 */
@FeignClient(value = "client-1", fallback = TestFeignHystrix.class)
public interface TestFeign {

    @GetMapping("test")
    String getTestFeign(@RequestParam("name") String name);

}
